home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / shells / csh526.pat < prev    next >
Text File  |  1996-11-17  |  1KB  |  38 lines

  1. diff --unified --recursive --unidirectional-new-file --ignore-space-change ../csh.old/Makefile ./Makefile
  2. --- ../csh.old/Makefile    Thu Jan  7 16:29:28 1993
  3. +++ ./Makefile    Sat Nov  6 15:45:01 1993
  4. @@ -5,7 +5,7 @@
  5.  #
  6.  # Linux changes by Ken Clark 1/6/93
  7.  
  8. -CFLAGS    = -O3 -s -fstrength-reduce -DFILEC -DNLS \
  9. +CFLAGS    = -O6 -s -fstrength-reduce -DFILEC -DNLS \
  10.        -DSHORT_STRINGS -D__USE_BSD -D__USE_BSD_SIGNAL -I.
  11.  # I wanted -fwritable-strings but GCC complained.  Why?  Seems it is not
  12.  # needed anyway.
  13. diff --unified --recursive --unidirectional-new-file --ignore-space-change ../csh.old/proc.c ./proc.c
  14. --- ../csh.old/proc.c    Wed Jan  6 17:27:30 1993
  15. +++ ./proc.c    Mon Nov  8 00:22:21 1993
  16. @@ -1280,16 +1280,14 @@
  17.       * background jobs process groups Same for the comparison in the other part
  18.       * of the #ifdef
  19.       */
  20. -    if (wanttty >= 0)
  21. -    if (setpgid(0, pgrp) == -1) {
  22. -        xprintf("csh: setpgid error.\n");
  23. +    if (wanttty >= 0) {
  24. +    if (setpgid(0, pgrp) == -1 && errno != EPERM) {
  25. +               xprintf("csh: setpgid error.%d %d\n",pgrp,errno);
  26.          xexit(0);
  27. -    }
  28. -
  29. -    if (wanttty > 0) {
  30. +    };
  31.      (void) tcsetpgrp(FSHTTY, pgrp);
  32.      (void) sigsetmask(omask);
  33. -    }
  34. +    };
  35.  
  36.      if (tpgrp > 0)
  37.      tpgrp = 0;        /* gave tty away */
  38.